<template>
	<view>
		<!-- <canvas canvas-id="pdf-canvas"></canvas> -->
		<web-view :src="url"></web-view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				viewerUrl: '/static/-pdf--master/hybrid/pdf.html',
				fileUrl: '',
				url: '',
			}
		},
		onLoad() {
			// this.fileUrl = 'http://192.168.1.251:6050/sf_enterprise_service/data/test.pdf'
			this.fileUrl = window.location.href.split('#')[0] + 'sf_enterprise_service/data/test.pdf'
			this.url = `${this.viewerUrl}?url=${this.fileUrl}`
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
